package com.tarena.lbs.basic.controller;

import com.tarena.lbs.base.protocol.model.Result;
import com.tarena.lbs.basic.pojo.vo.AreaVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 处理区域 地市数据业务的接口类
 */
@Tag(name = "区域服务", description = "区域服务")
@RestController
public class AreaController {


    @Operation(summary = "查询省级地区列表")
    @GetMapping("/admin/basic/area/queryList")
    public Result<List<AreaVO>> queryProvinces(){
        return null;
    }

    @Operation(summary = "查询地市列表")
    @GetMapping("/admin/basic/area/{parentId}/children")
    public Result<List<AreaVO>> queryChildren(@PathVariable("parentId") Integer parentId){
        return null;
    }

    @Operation(summary = "查询地市树")
    @GetMapping("/admin/basic/area/tree")
    public Result<List<AreaVO>> tree(){
        return null;
    }

}
